package com.bw.controller;

import com.bw.bean.Vo1;
import com.bw.service.PaymentService;
import org.apache.ibatis.annotations.UpdateProvider;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.convert.PeriodUnit;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;


@RestController
public class PaymentController {
    @Autowired
    PaymentService paymentService;

    @Test
    public void t1(){
        List<Vo1> getlist=paymentService.getlist();
        for (Vo1 vo1 : getlist) {
            System.out.println(vo1);
        }
        //return getlist;
    }


    @Test
    public void t2(){
        List<Vo1> getlist=paymentService.getlist1();
        for (Vo1 vo1 : getlist) {
            System.out.println(vo1);
        }
        //return getlist;
    }



    @Test
    public List<Vo1> t3(){
        List<Vo1> getlist=paymentService.getlist2();
        return getlist;
    }



    @Test
    public int t4(){
        int getlist=paymentService.getlist4();
        return getlist;
    }
}
